package com.atstudy.jdbc;

import java.util.Date;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2023/1/10 14:32
 * @copyright: 博为峰
 */
public class Student {
    private int id;
    private String name;
    private String sex;
    private String claName;
    private int age;
    private int score;
    private Date createTime;
    private Date updateTime;
    private int claId;

    public Student() {
    }

    public Student(String name, String sex, String claName, int age, int score, int claId) {
        this.name = name;
        this.sex = sex;
        this.claName = claName;
        this.age = age;
        this.score = score;
        this.claId = claId;
    }

    public Student(int id, String name, String sex, String claName, int age, int score, Date createTime, Date updateTime, int claId) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.claName = claName;
        this.age = age;
        this.score = score;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.claId = claId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getClaName() {
        return claName;
    }

    public void setClaName(String claName) {
        this.claName = claName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getClaId() {
        return claId;
    }

    public void setClaId(int claId) {
        this.claId = claId;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", claName='" + claName + '\'' +
                ", age=" + age +
                ", score=" + score +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", claId=" + claId +
                '}';
    }
}
